<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html>
<head>
<title>On-line team</title>
</head>
<link rel="stylesheet" href="../../resources/css/fw-list.css"
	type="text/css">
<script src="../../script/base.js"></script>
<script src="../../script/list.js"></script>
<script>
	var contextPath = "<c:out value='${pageContext.request.contextPath}'/>";
</script>

<body bgcolor="white">
	<f:view>
		<f:loadBundle basename="net.orange.conf.lang.fw" var="msg" />

		<h:form id="listForm">
			<table align="center" width="100%">
				<tr>
					<td class="table-text-3" nowrap>Online team count:</td>
					<td class="table-text-blue-title"><b><h:outputText
								value="#{team.teams.rowCount}" /> </b>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<hr></td>
				</tr>
				<tr>
					<td colspan="2"><h:dataTable id="table" value="#{team.teams}"
							styleClass="listing-table" var="the" rowClasses="table-text"
							headerClass="column-head" style="width:100%;">

							<h:column>
								<f:facet name="header">
									<h:outputText value="Team Id" />
								</f:facet>
								<h:outputText value="#{the.teamId}" />
							</h:column>

							<h:column>
								<f:facet name="header">
									<h:outputText value="Team Name" />
								</f:facet>
								<h:outputText value="#{the.teamName}" />
							</h:column>

							<h:column>
								<f:facet name="header">
									<h:outputText value="Team Lead" />
								</f:facet>
								<h:outputText value="#{the.teamLead.nickname}" />
							</h:column>
							
							<h:column>
								<f:facet name="header">
									<h:outputText value="Team Size" />
								</f:facet>
								<h:outputText value="#{the.teamSize}" />
							</h:column>
							
							<h:column>
								<f:facet name="header">
									<h:outputText value="Team Members" />
								</f:facet>
								<h:outputText value="#{the.teamMemberNames}" />
							</h:column>

						</h:dataTable></td>
				</tr>
			</table>
		</h:form>
	</f:view>
</body>
</html>
